import request from '@/router/axios';
import config from '@/config/website'

//列表
export const getList = (current, size, equipment) => {
    return request({
        url: '/api/blade-sale/customersatisfactionmodel/page',
        method: 'get',
        params: {
            current,
            size,
            ...equipment
        }
    })
}
export const getListAll = () => {
    return request({
        url: '/api/blade-sale/customersatisfactionmodel/list',
        method: 'get',
    })
}

//新建
export const add = (data) => {
    return request({
        url: '/api/blade-sale/customersatisfactionmodel/save',
        method: 'post',
        data
    })
}
//修改
export const update = (data) => {
    return request({
        url: '/api/blade-sale/customersatisfactionmodel/update',
        method: 'post',
        data
    })
}
//删除
export const remove = (ids) => {
    return request({
        url: '/api/blade-sale/customersatisfactionmodel/remove',
        method: 'post',
        params: {
            ids
        }
    })
}
//查看
export const detail = (id) => {
    return request({
        url: '/api/blade-sale/customersatisfactionmodel/detail',
        method: 'get',
        params: {
            id
        }
    })
}
//列表
export const getChildList = (current, size, equipment) => {
    return request({
        url: '/api/blade-sale/customersatisfationmodelchild/page',
        method: 'get',
        params: {
            current,
            size,
            ...equipment
        }
    })
}
//新建
export const addChild = (data) => {
    return request({
        url: '/api/blade-sale/customersatisfationmodelchild/save',
        method: 'post',
        data
    })
}
//修改
export const updateChild = (data) => {
    return request({
        url: '/api/blade-sale/customersatisfationmodelchild/update',
        method: 'post',
        data
    })
}
//删除
export const removeChild = (ids) => {
    return request({
        url: '/api/blade-sale/customersatisfationmodelchild/remove',
        method: 'post',
        params: {
            ids
        }
    })
}